<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>注册</title>
    <link rel="stylesheet" href="/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="/bootstrap/css/bootstrap-theme.min.css">
    <script src="/bootstrap/js/jquery.js"></script>
    <script src="/bootstrap/js/bootstrap.min.js"></script>
    <style>
        .form-control, .error{
            width:500px;
        }
        span,input{
            display:inline-block;
        }
    </style>
</head>
<body>
<div class="container" style="padding-top:100px;">
    <div class="col-md-6 col-md-offset-3">
        <form method="post" action="/admin/register/checkInfo">
            <div class="form-group">
                <label for="exampleInputEmail1">用户名</label>
                <input type="text" class="form-control" name="username" id="exampleInputEmail1" placeholder="">
                <span>请输入6~12数字字母</span>
            </div>
            <div class="form-group">
                <label for="exampleInputPassword1">真实姓名</label>
                <input type="text" class="form-control" name="realname" id="exampleInputPassword1" placeholder="">
            </div>
            <div class="form-group">
                <label for="exampleInputPassword1">邮箱</label>
                <input type="text" class="form-control" name="email" id="exampleInputPassword1" placeholder="">
            </div>
            <div class="form-group">
                <label for="exampleInputPassword1">手机号</label>
                <input type="text" class="form-control" name="phone" id="exampleInputPassword1" placeholder="">
            </div>
            <div class="form-group">
                <label for="exampleInputPassword1">验证码</label>
                <input type="text" class="form-control" name="checkcode" id="exampleInputPassword1" placeholder="">
            </div>
            <div class="form-group">
                <label for="exampleInputPassword1">密码</label>
                <input type="password" class="form-control" name="password" id="exampleInputPassword1" placeholder="请输入6~12密码">
                <span></span>
            </div>
            <div class="form-group">
                <label for="exampleInputPassword1">确认密码</label>
                <input type="password" class="form-control" name="repassword" id="exampleInputPassword1" placeholder="确认密码">
                <span></span>
            </div>
            {{csrf_field()}}
            @if (count($errors) > 0)
                <div class="alert alert-warning alert-dismissible error" role="alert">
                    <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <ul>
                        @foreach ($errors->all() as $error)
                            <li>{{ $error }}</li>
                        @endforeach

                    </ul>
                </div>
            @endif
            <button type="submit" class="btn btn-default">注册</button>
            <button type="button" class="btn btn-default"><a href="/admin/login">已有账号登录</a></button>
        </form>
    </div>
</div>
</body>
</html>